package com.jcl.cloud.services.login.client;

import org.springframework.web.client.RestTemplate;

public class LoginWorkerClient {

    private RestTemplate restTemplate;


    public LoginWorkerClient(RestTemplate restTemplate){
        this.restTemplate = restTemplate;
    }


    public void createTask(String crawlerId){
          String url = "http://login-worker-server/login-worker/api/v1/manager/tasks?crawlerId={crawlerId}";
          this.restTemplate.getForObject(url,String.class,crawlerId);
    }


}
